Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new focusing effect: crop figures reversibly #128

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zzzhehao
Copy link

@zzzhehao zzzhehao commented Nov 3, 2024

When presenting complex figures, simple pan or zoom effects may not optimally guide the audience's attention. To address this, I've added a crop effect to remove distracting parts of the figure. Use [@cr-myfigure]{data-crop="20%, 20%, 20%, 20%"} to specify the cropping portions on all four sides of the figure (top, right, bottom, left). To remove all existing cropping effects, simply call the figure without any specification: @cr-myfigure.

Brief introduction has been added in docs/guide/focus-effects.qmd.

Here a quick demo video.

@andrewpbray
Copy link
Contributor

Thanks for the PR!

We're very keen to work on this with you but it'll be about a week before we can take a look.

@zzzhehao
Copy link
Author

zzzhehao commented Nov 8, 2024

Thanks for the PR!

We're very keen to work on this with you but it'll be about a week before we can take a look.

No stress, I also opened PR completely unannounced. I got the idea and did some tiny modification for my own work, I just pushed to share it but it most probably needs some polishing from the developing side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants